<template>
  <div>
    <img id="img" width="300" height="300" src="../../assets/1.jpg" />
  </div>
</template>

<script setup lang="ts">
// const slot = useSlots();
// const attr = useAttrs();
// console.log(attr);

import useBase64 from "./hooks/useBase64";

useBase64({
  el: "#img",
}).then((res) => {
  console.log(res.baseUrl);
});
</script>

<style scoped></style>
